output-format

This command enables the output of certain show commands to be displayed in JSON format.

Syntax

output-format 

Command

Description

json

Displays the output in JSON format.

plain

Displays the output in regular plain text format.

Note

The JSON format is supported only by certain show commands. For filtering the output, see the first, last, range and descending commands in Section Common CLI Commands.

Command Mode

Basic User and Privileged User

Example

The example displays only the first two calls and in JSON format:

output-format json
show voip calls history sbc first 2
{
"History" : [
{
    "CallEndTime": "08:21:41.376  UTC Wed Mar 28 2018",
    "IpGroup": "Linux",
    "Caller": "sipp",
    "Callee": "service",
    "Direction": "Incoming",
    "Duration": "00:00:17",
    "RemoteIP": "10.33.5.141",
    "TermReas": "NORMAL_CALL_CLEAR",
    "SessionId": "3c71d9:152:621"
},
{
    "CallEndTime": "08:21:41.366  UTC Wed Mar 28 2018",
    "IpGroup": "Linux",
    "Caller": "sipp",
    "Callee": "service",
    "Direction": "Outgoing",
    "Duration": "00:00:17",
    "RemoteIP": "10.33.5.141",
    "TermReas": "NORMAL_CALL_CLEAR",
    "SessionId": "3c71d9:152:621"
}
]
}